package com.dowsure.apisaas.enums;

/**
 * @description: 卖家offer发送状态
 * @author: Dowsure
 * @create: 2022-02-21 17:41
 **/
public enum  SellerOfferSendStatusEnums {

    SEND_TO_PROCESSING("SEND_TO_PROCESSING", "处理中"),
    SEND_SUCCESS("SEND_SUCCESS", "发送成功"),
    SEND_FAIL("SEND_FAIL", "发送失败")
    ;

    private String value;

    private String describe;

    SellerOfferSendStatusEnums(String value, String describe){
        this.value = value;
        this.describe = describe;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }

    public static SellerOfferSendStatusEnums fromValue(String text) {
        for (SellerOfferSendStatusEnums b : SellerOfferSendStatusEnums.values()) {
            if (String.valueOf(b.value).equals(text)) {
                return b;
            }
        }
        return null;
    }
}
